const mongoose = require('mongoose');
const Schema = mongoose.Schema;

const newsSchema = new Schema({
    id: String,
    channelId: String,
    pubDate: Date,
    channelName: String,
    desc: String,
    link: String,
    content: String,
    havePic: Boolean,
    title: String,
    imageurls: Array,
    source: String
});

module.exports = mongoose.model('New', newsSchema);